<fmt:setLocale value="zh-Hans-CN,zh-Hans;q=0.5"/>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en">
<head>
    <OBJECT id="iTrusPTA" codeBase="PTAExt.CAB#version=2,4,3,1" classid="clsid:1E0DFFCF-27FF-4574-849B-55007349FEDA">
    </OBJECT>
    <meta http-equiv="Content-Type" content="text/html; charset=gb2312"/>
    <meta name="keywords" content="单点登录中心SSO,PICC"/>
    <link rel="stylesheet" type="text/css" media="screen"
          href="/casserver/style/index.css;jsessionid=plrRg1hJv2XhxszWvzSJXk0pymGb6D9j62PGNpH2yT3zkcpLhsP3!1771586419"/>
    <link rel="stylesheet" type="text/css" media="screen"
          href="/casserver/style/layout_index.css;jsessionid=plrRg1hJv2XhxszWvzSJXk0pymGb6D9j62PGNpH2yT3zkcpLhsP3!1771586419"/>
    <link rel="stylesheet"
          href="/casserver/style/home.css;jsessionid=plrRg1hJv2XhxszWvzSJXk0pymGb6D9j62PGNpH2yT3zkcpLhsP3!1771586419"
          type="text/css" media="all"/>
    <link rel="stylesheet"
          href="/casserver/style/jasig.css;jsessionid=plrRg1hJv2XhxszWvzSJXk0pymGb6D9j62PGNpH2yT3zkcpLhsP3!1771586419"
          type="text/css" media="all"/>


    <script language="javascript" src="/casserver/common/dwr/engine.js"></script>
    <script language="javascript" src="/casserver/common/dwr/util.js"></script>
    <script language='javascript' src='/casserver/dwr/interface/FaceCheckSystem.js'></script>


    <script type="text/javascript" src="/casserver/js/common_rosters.js"></script>
    <script type="text/javascript" src="/casserver/js/softkeyboard.js"></script>
    <script language="javascript" src="/casserver/widgets/yui/yahoo-dom-event/yahoo-dom-event.js"></script>
    <script language="javascript" src="/casserver/widgets/yui/dragdrop/dragdrop-min.js"></script>
    <script language="javascript" src="/casserver/widgets/yui/container/container-min.js"></script>
    <script language="javascript" src="/casserver/widgets/yui/datasource/datasource-beta-min.js"></script>
    <script language="javascript"
            src="/casserver/js/AjaxCommon.js;jsessionid=plrRg1hJv2XhxszWvzSJXk0pymGb6D9j62PGNpH2yT3zkcpLhsP3!1771586419"></script>
    <script language="javascript"
            src="/casserver/js/prototype.js;jsessionid=plrRg1hJv2XhxszWvzSJXk0pymGb6D9j62PGNpH2yT3zkcpLhsP3!1771586419"></script>
    <script language="javascript"
            src="/casserver/js/pta.js;jsessionid=plrRg1hJv2XhxszWvzSJXk0pymGb6D9j62PGNpH2yT3zkcpLhsP3!1771586419"></script>
    <script language="javascript" src="/casserver/common/dwr/engine.js"></script>
    <script language="javascript" src="/casserver/common/dwr/util.js"></script>
    <script language='javascript' src='/casserver/dwr/interface/Ims.js'></script>
    <script language='javascript' src='/casserver/dwr/interface/Ims.js'></script>
    <script language='javascript' src="/casserver/common/dwr/jquery.min.js"></script>
    <script language='javascript' src="/casserver/common/dwr/ok.js"></script>

    <script src="js/pta.js" type="text/javascript"></script>

    <title>PICC-核心业务系统-登录中心</title>
    <link href="/casserver/style/style_all.css" rel="stylesheet" type="text/css"/>
    <link href="/casserver/style/Standard.css" rel="stylesheet" type="text/css"/>
    <script language="javascript">

        YAHOO.util.Event.addListener(window, "load", frame);

        function frame() {
            var submitDlg;
            submitDlg = new YAHOO.widget.Dialog("submitDlg", {
                iframe: true,
                visible: true,
                width: 460,
                height: 300,
                underlay: "shadow",
                constraintoviewport: true,
                fixedcenter: false,
                modal: false,
                close: true,
                zIndex: 120
            });
            submitDlg.setHeader("PICC-公告信息");
            submitDlg.setBody("<iframe name='submitFrame' frameborder='0' style='margin:0; padding:0; width:100%; height: 100%' src='/casserver/notes.jsp?systemCode='></iframe>");
            submitDlg.render(document.body);
            var dialogpropertyX = (document.body.clientWidth - 1024) / 2 + 15;
            submitDlg.cfg.setProperty("x", dialogpropertyX);
            submitDlg.cfg.setProperty("y", 20);
            submitDlg.show();
            return false;
        }

    </script>
    <!--201503220-002 关于在车险业务系统增加用户代码和mac地址采集功能的需求    MODIFY BY LIUDAN,UPD,2015-06-25,获取用户mac地址---- start-->
    <!-- <script language="JScript" event="OnCompleted(hResult,pErrorObject, pAsyncContext)" for="foo" type="text/javascript">
    document.getElementById("userMac").value=unescape(MACAddr);
    </script>
    <script language="JScript" event="OnObjectReady(objObject,objAsyncContext)" for="foo" type="text/javascript">
       if(objObject.IPEnabled != null && objObject.IPEnabled != "undefined" && objObject.IPEnabled == true)
       {
        if(objObject.MACAddress != null && objObject.MACAddress != "undefined")
        MACAddr = objObject.MACAddress;
        }
    </script> -->
    <OBJECT id="locator" classid="CLSID:76A64158-CB41-11D1-8B02-00600806D9B6"></OBJECT>
    <OBJECT id="foo" classid="CLSID:75718C9A-F029-11d1-A1AC-00C04FB6C223"></OBJECT>
    <!-- <script language="JScript" type="text/javascript">
       var service = locator.ConnectServer();
       var MACAddr ;
       service.Security_.ImpersonationLevel=3;
       service.InstancesOfAsync(foo, 'Win32_NetworkAdapterConfiguration');
    </script> -->
    <!--201503220-002 关于在车险业务系统增加用户代码和mac地址采集功能的需求    MODIFY BY LIUDAN,UPD,2015-06-25,获取用户mac地址---- end-->
</head>
<body class="logon" onload="init();"> <!-- checkCode(objSystemName ); -->


<form id="fm" method="post"
      action="/casserver/login;jsessionid=plrRg1hJv2XhxszWvzSJXk0pymGb6D9j62PGNpH2yT3zkcpLhsP3!1771586419?service=http%3A%2F%2F10.134.132.112%3A80%2Fportal%2Findex.jsp"
      onsubmit="return submitForm();">
    <input name="PTAVersion" type="hidden"/>
    <input name="toSign" id="toSign" type="hidden"/>
    <input name="Signature" id="Signature" type="hidden"/>
    <input name="rememberFlag" id="rememberFlag" type="hidden" value="0"/>
    <input name="userMac" id="userMac" type="hidden"/>
    <input name="key" id="key" type="hidden" value="yes"/>
    <input name="errorKey" id="errorKey" type="hidden" value="null"/>
    <table width="1004" height="100%" border="0" cellpadding="0" cellspacing="0">
        <tr>
            <td rowspan="2" valign="top" class="bgleft"><img src="/casserver/images/imglogon_1.jpg"/></td>
            <td valign="top"><img src="/casserver/images/imglogon_2.jpg"/></td>
            <td rowspan="2" valign="top" class="bgright"><img src="/casserver/images/imglogon_3.jpg"/></td>
        </tr>
        <tr>
            <td height="285" bgcolor="#f8f8f8" class="bg">
                <table width="358" border="0" cellspacing="0" cellpadding="0">
                    <tr>
                        <td height="8"><img src="/casserver/images/bglogontop.gif"/></td>
                    </tr>
                    <tr>
                        <td height="151" align="center" background="/casserver/images/bglogon_2.gif">
                            <table width="90%" border="0" cellspacing="0" cellpadding="5">
                                <tr>
                                    <td align="right">
                                        <table width="100%" border="0" cellspacing="0" cellpadding="5">
                                            <tr>
                                                <td width="250" align="left" valign="top">
                                                    &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;

                                                    <select onchange="chooseMethod();" name="loginMethod"
                                                            id="loginMethod">
                                                        <option value="nameAndPwd">用户名密码</option>
                                                        <option value="usbkey">USBKEY</option>
                                                    </select>
                                                    <table width="100%" border="0" cellspacing="0" cellpadding="5"
                                                           id="table2" style="display:">
                                                        <tr>
                                                            <td height="15"></td>
                                                        </tr>
                                                        <tr>
                                                            <td width="30%" height="30" align="right"><img
                                                                    src="/casserver/images/imgusername.gif"></td>
                                                            <td width="70%">
                                                                <input id="username1" name="username" class="logon"
                                                                       tabindex="1" type="text" value="" maxlength="10"
                                                                       autocomplete="on"/>
                                                                <input type="hidden" name="username99" value=""/>
                                                            </td>
                                                        </tr>
                                                        <tr>
                                                            <td width="30%" height="30" align="right">
                                                                <img src="/casserver/images/imgpassword.gif"></td>
                                                            <td width="70%">
                                                                <input id="password1" name="password" class="logon"
                                                                       tabindex="2" type="password" value="" size="25"
                                                                       autocomplete="off"/>


                                                            </td>
                                                        </tr>
                                                        <tr>
                                                            <td colspan="2" align="center">
                                                                <div id="message">

                                                                </div>
                                                                <input type="hidden" name="lt"
                                                                       value="_c339DBAB7-4987-F27D-D21F-E6C7B8FCD829_k70083F31-7382-B952-6818-4FDE11540AAF"/>
                                                                <input type="hidden" name="publickey11" id="publickey11"
                                                                       value="-----BEGIN PUBLIC KEY-----MIGfMA0GCSqGSIb3DQEBAQUAA4GNADCBiQKBgQC+qbskv7MBxGiscsKidcQs2PW/gHOdEI0cHwbUW07HNEYSxCX7XV4y8o3zIFGTZoGyC4bNgPcy+YT1OuJX3OxiClKrWJ9xuUYvxhBazMC3rUw5+iBv53daq/85c/hosE1/F9SE/iqjad3EbT3DEoXp8WZJELZyWHKHpX5MSRvgZQIDAQAB-----END PUBLIC KEY-----"/>
                                                                <input type="hidden" name="_eventId" value="submit"/>
                                                            </td>
                                                        </tr>
                                                    </table>
                                                    <table width="100%" border="0" cellspacing="0" cellpadding="5"
                                                           id="table1" style="display:none" disabled="true">
                                                        <tr style="display:none" id="Cer">
                                                            <td>
                                                                <select class='logon' name="CertList" id="CertList"
                                                                        align="right" tabindex="3"
                                                                        onchange="getAccCode();">
                                                                </select>
                                                                <input type="hidden" id="username2" name="username"
                                                                       value=""/>
                                                                <input type="hidden" id="usbkey" name="usbkey"
                                                                       value="USBKEY"/>
                                                                <input type="hidden" id="password2" name="password"
                                                                       value="1111"/>
                                                                <input type="hidden" name="lt"
                                                                       value="_c339DBAB7-4987-F27D-D21F-E6C7B8FCD829_k70083F31-7382-B952-6818-4FDE11540AAF"/>
                                                                <input type="hidden" name="_eventId" value="submit"/>
                                                            </td>
                                                        </tr>
                                                    </table>
                                                    <table width="100%" border="0" cellspacing="0" cellpadding="5"
                                                           id="table3" style="display:none" disabled="true">
                                                        <tr style="display:none" id="Cer">
                                                            <td>
                                                                <input type="hidden" id="username3" name="username"
                                                                       value="null"/>
                                                                <input type="hidden" id="usbkey" name="usbkey"
                                                                       value="CROSS"/>
                                                                <input type="hidden" id="password3" name="password"
                                                                       value="1111"/>
                                                                <input type="hidden" name="lt"
                                                                       value="_c339DBAB7-4987-F27D-D21F-E6C7B8FCD829_k70083F31-7382-B952-6818-4FDE11540AAF"/>
                                                                <input type="hidden" name="_eventId" value="submit"/>
                                                            </td>
                                                        </tr>
                                                    </table>
                                            </tr>

                                            </tr>
                                        </table>
                                    </td>
                                    <td align="left" valign="bottom">
                                        <input type="image" id="button" name="button" accesskey="l"
                                               src="/casserver/images/btn_login.gif" class="btn" tabindex="3"
                                               onsubmit="return submitForm();"/>
                                    </td>

                                </tr>
                            </table>
                            <br/>
                            <!--MODIFY BEGIN WANGHAIBO ADD（新增是ADD,修改是UPD,删除是DEL）204-06-10
                                PICC2014051401 用户系统密码忘记自动取回需求
                            -->
                            <table>
                                <tr>
                                    <td align="left" width="100"><a href="#" onclick="changePassword()">修改密码</a></td>
                                    <td align="center" width="100"><a href="#" onclick="bindlingEmail()">绑定邮箱</a></td>
                                    <td align="right" width="100"><a href="#" onclick="forgotPassword()">忘记密码</a></td>
                                </tr>
                            </table>
                        </td>
                    </tr>
                    <tr>

                        <td height="7"><img src="/casserver/images/bglogondown.gif"/></td>
                    </tr>
                </table>
                <div id="notsetup"></div>
        <tr>
            <td class="bgleft">&nbsp;</td>
            <td height="100%" bgcolor="#F8F8F8"></td>
            <td class="bgright">&nbsp;</td>
        </tr>
        <div id="pcguiddis">
            <input id="pcguid" name="pcguid" class="logon" tabindex="3" type="text" value="" autocomplete="off"
                   readonly="true"/>
        </div>
</form>


<div id="disPCGUID"></div>
</body>
</html>
<!--新建的js代码开始  -->
<script language='javascript'></script>

<script>
    (function () {
        var usercode = document.getElementById("username3").value;
//当自动跳转出错时跳转回正常登录页面，且登录方式改为用户名密码登录方式
        var errorKey = document.getElementById("errorKey").value;
        if (errorKey == "no") {
            document.getElementById("key").value = "no";
        }
        if (usercode != null && "" != usercode && "null" != usercode && ("null" == errorKey || errorKey == null)) {
            document.getElementById("table3").style.display = "";
            document.getElementById("table3").disabled = false;
            document.getElementById("table1").style.display = "none";
            document.getElementById("table1").disabled = true;
            document.getElementById("table2").style.display = "none";
            document.getElementById("table2").disabled = true;
            fm.submit();
        }
    })()

</script>
<script language="javascript">
    // PICC2014021701 健康险专项平台跳转非车承保系统打开页面方式调整。

    if (self != top) {
        top.location = self.location;
    }

</script>


<script language="javascript">


    function submitForm() {

        var key = document.getElementById("publickey11").value;
        verifyLogin();
        var encrypt = new JSEncrypt();
        //参考四代用户中心加密方法
        //encrypt.setPublicKey("-----BEGIN PUBLIC KEY-----MIGfMA0GCSqGSIb3DQEBAQUAA4GNADCBiQKBgQC+qbskv7MBxGiscsKidcQs2PW/gHOdEI0cHwbUW07HNEYSxCX7XV4y8o3zIFGTZoGyC4bNgPcy+YT1OuJX3OxiClKrWJ9xuUYvxhBazMC3rUw5+iBv53daq/85c/hosE1/F9SE/iqjad3EbT3DEoXp8WZJELZyWHKHpX5MSRvgZQIDAQAB-----END PUBLIC KEY-----");
        encrypt.setPublicKey(key);
        var method = document.getElementById("loginMethod").value;
        //this.document.getElementById("username1").value=encrypt.encrypt(document.getElementById("username1").value);
        this.document.getElementById("password1").value = encrypt.encrypt(document.getElementById("password1").value);

        if (method == 'nameAndPwd') {
            var username = document.getElementById("username1").value;
            var password = document.getElementById("password1").value;

            if (username == null || username == "") {

                alert("请输入用户名！");
                return false;
            }
            if (password == null || password == "") {
                alert("请输入密码！");
                return false;
            }
            /* alert("user:"+username+"???");
            alert("password:"+password); */
            return true;
        } else if (method == 'usbkey') {

            fm.toSign.value = new Date().getTime();
            var signature = DoLogonSign(issuerDN, serialNumber, fm.CertList, fm.toSign);
            if (signature.length > 0) {
                fm.Signature.value = signature;
                return true;
            } else {
                return false;
            }
        } else {
            alert("请选择登陆方式");
            return false;
        }
    }
</script>
<script>

    YAHOO.util.Event.addListener(window, "load", frame);

    function frame() {
        var submitDlg;
        submitDlg = new YAHOO.widget.Dialog("submitDlg", {
            iframe: true,
            visible: true,
            width: 460,
            height: 300,
            underlay: "shadow",
            constraintoviewport: true,
            fixedcenter: false,
            modal: false,
            close: true,
            zIndex: 120
        });
        submitDlg.setHeader("PICC-公告信息");
        //submitDlg.setBody("<iframe name='submitFrame' frameborder='0' style='margin:0; padding:0; width:100%; height: 100%' src='/casserver/notes.jsp?systemCode='></iframe>");
        submitDlg.render(document.body);
        var dialogpropertyX = (document.body.clientWidth - 1024) / 2 + 15;
        submitDlg.cfg.setProperty("x", dialogpropertyX);
        submitDlg.cfg.setProperty("y", 20);
        submitDlg.show();
        return false;
    }

</script>
<!--201503220-002 关于在车险业务系统增加用户代码和mac地址采集功能的需求    MODIFY BY LIUDAN,UPD,2015-06-25,获取用户mac地址---- start-->
<script language="JScript" event="OnCompleted(hResult,pErrorObject, pAsyncContext)" for="foo" type="text/javascript">
    document.getElementById("userMac").value = unescape(MACAddr);
</script>
<script language="JScript" event="OnObjectReady(objObject,objAsyncContext)" for="foo" type="text/javascript">
    if (objObject.IPEnabled != null && objObject.IPEnabled != "undefined" && objObject.IPEnabled == true) {
        if (objObject.MACAddress != null && objObject.MACAddress != "undefined")
            MACAddr = objObject.MACAddress;
    }
</script>
<script language="JScript" type="text/javascript">
    var service = locator.ConnectServer();
    var MACAddr;
    service.Security_.ImpersonationLevel = 3;
    service.InstancesOfAsync(foo, 'Win32_NetworkAdapterConfiguration');
</script>


<!-- 新建的js代码结束 -->

<script type="text/javascript">
    document.getElementById("pcguiddis").style.display = "none";//隐藏
</script>

<script type="text/javascript">

    /* 201505253-002  不容许客户端浏览器启用缓存用户名、密码等账户信息
     * MODIFY BY LIUDAN,UPD,20160523
     */
    //    var cvalue = GetCookie("prpall");
    //	if(cvalue != ""){
    //		document.getElementById("username1").value = cvalue;
    //	 }
    function GetCookie(name) {
        var cookies = document.cookie.split(';');
        var cookie = '';
        for (var i = 0; i < cookies.length; i++) {
            cookie = cookies[i].split('=');
            if (cookie[0].replace(/^\s+|\s+$/g, '') == name) {
                return (cookie.length <= 1) ? "" : unescape(cookie[1].replace(/^\s+|\s+$/g, ''));
            }
        }
        return "";
    }

    function DeleteCookie(name) {
        var exp = new Date();
        exp.setTime(exp.getTime() - 1);
        var cval = GetCookie(name);
        document.cookie = name + "=" + cval + "; expires=" + exp.toGMTString();
    }

    function verifyLogin() {
        if (fm.username1.value != GetCookie("prpall")) {
            DeleteCookie("costctrl");
            document.getElementById("rememberFlag").value = "1";
        }
    }
</script>
<script type="text/javascript">
    issuerDN = "C=CN, O=PICC Property and Casualty, OU=CA Center, CN=PICC Property and Casualty User CA";// 该部分内容根据实际证书信息进行调整
    var cre = ListValidCerts(issuerDN, serialNumber, fm.CertList);
    if (cre.count == 0) {
        issuerDN = "C=CN, O=PICC Property and Casualty new, OU=CA Center, CN=PICC Property and Casualty User CA new";// 该部分内容根据实际证书信息进行调整
        cre = ListValidCerts(issuerDN, serialNumber, fm.CertList);
    }
</script>
<script type="text/javascript">
    function (v) {
        alert(1);
        var vsplit = v.responseText.split(",");
        if (vsplit[0] == 1) {
            alert("非常抱歉的通知您的密码将在" + vsplit[1] + "失效，为保证您的正常使用请及时更新密码！");
            return true;
        }
        if (vsplit[0] == 2) {
            alert("抱歉的通知您，您的密码已于" + vsplit[1] + "失效，请联系总公司信科部延长密码使用期限！");
            return true;
        }
    }

    function errorCheck() {
        return true;
    }

    function chooseMethod() {
        var method = document.getElementById("loginMethod").value;
        if (method == "0") {
            document.getElementById("table1").style.display = "none";
            document.getElementById("table1").disabled = true;
            document.getElementById("table2").style.display = "none";
            document.getElementById("table2").disabled = true;
            document.getElementById("CertList").value = cre.count;
        } else if (method == "usbkey") {
            document.getElementById("table1").style.display = "";
            document.getElementById("table1").disabled = false;
            document.getElementById("table2").style.display = "none";
            document.getElementById("table2").disabled = true;
            document.getElementById("Cer").style.display = "none";
            document.getElementById("CertList").value = cre.count;
            getAccCode();
        } else if (method == "nameAndPwd") {
            document.getElementById("table1").style.display = "none";
            document.getElementById("table1").disabled = true;
            document.getElementById("table2").style.display = "";
            document.getElementById("table2").disabled = false;
            document.getElementById("CertList").value = cre.count;
            document.getElementById("username1").value = "";
            document.getElementById("password1").value = "";
            document.getElementById("message").innerHTML = "";
        }
    }

    function getAccCode() {
        var value = document.getElementById("CertList").value;
        //fm.toSign.value="1234567890";
        fm.toSign.value = new Date().getTime();
        var Signature = DoLogonSign(issuerDN, serialNumber, fm.CertList, fm.toSign);
        if (Signature.length > 0) {
            Ims.getAccList(fm.toSign.value, Signature, callBack);
            return true;
        } else {
            return false;
        }
    }

    function callBack(data) {
        var method = document.getElementById("loginMethod").value;
        if (method == "usbkey") {
            var value = document.getElementById("CertList").value;
            if (data == null) {
                if (value == "0") {

                } else {
                    alert("该证书不包含账户");
                    document.getElementById("CertList").value = "0";
                }
            } else {
                if (data.length > 0) {
                    document.getElementById("username2").value = data[0];
                }
                fm.submit();
            }
        }
    }

    /*   var usercode = document.getElementById("username3").value;
      alert(111111111111); */
    //当自动跳转出错时跳转回正常登录页面，且登录方式改为用户名密码登录方式
    /* 	var errorKey = document.getElementById("errorKey").value;
        if(errorKey=="no"){
            document.getElementById("key").value="no";
        }
        if(usercode != null && "" != usercode && "null" != usercode&&("null"==errorKey||errorKey==null)){
            document.getElementById("table3").style.display="";
            document.getElementById("table3").disabled=false;
            document.getElementById("table1").style.display="none";
            document.getElementById("table1").disabled=true;
            document.getElementById("table2").style.display="none";
            document.getElementById("table2").disabled=true;
            alert("wosdfersdfsdf");
            fm.submit();
        } */

    function changePassword() {
        var width = 400;
        var height = 300;
        var left, top;
        left = (window.screen.availWidth - width) / 2;
        top = (window.screen.availHeight - height) / 2;
        var per = " ,width=" + width + ",height=" + height + ",left=" + left + ",top=" + top + ',screenX=' + left + ',screenY=' + top;
        window.open("changePassword.jsp", "newwindow", "alwaysRaised,status,scrollbars,resizable" + per);
    }

    function bindlingEmail() {
        var width = 400;
        var height = 300;
        var left, top;
        left = (window.screen.availWidth - width) / 2;
        top = (window.screen.availHeight - height) / 2;
        var per = " ,width=" + width + ",height=" + height + ",left=" + left + ",top=" + top + ',screenX=' + left + ',screenY=' + top;
        window.open("bindingEmail.jsp", "newwindow", "alwaysRaised,status,scrollbars,resizable" + per);
    }

    function forgotPassword() {
        var width = 400;
        var height = 300;
        var left, top;
        left = (window.screen.availWidth - width) / 2;
        top = (window.screen.availHeight - height) / 2;
        var per = " ,width=" + width + ",height=" + height + ",left=" + left + ",top=" + top + ',screenX=' + left + ',screenY=' + top;
        window.open("forgotPassword.jsp", "newwindow", "alwaysRaised,status,scrollbars,resizable" + per);
    }
</script>
